import request from '@/router/axios';

export const applePayProductClassifyList = (current, size, params) => {
  return request({
    url: '/api/blade-app/applePay/applePayProductClassifyPage',
    method: 'get',
    params: {
      ...params,
      current,
      size
    }
  })
}

export const applePayProductClassifyListM = (current, size, params) => {
  return request({
    url: '/api/blade-app/applePay/applePayProductClassifyPageM',
    method: 'get',
    params: {
      ...params,
      current,
      size
    }
  })
}

export const applePayProductClassifyAllList = (form) => {
  return request({
    url: '/api/blade-app/applePay/applePayProductClassifyList',
    method: 'post',
    data:form
  })
}
export const applePayProductClassifyAllListM = (form) => {
  return request({
    url: '/api/blade-app/applePay/applePayProductClassifyListM',
    method: 'post',
    data:form
  })
}

export const addApplePayProductClassify = (form) => {
  return request({
    url: '/api/blade-app/applePay/saveApplePayProductClassify',
    method: 'post',
    data:form

  })
}

export const addApplePayProductClassifyM = (form) => {
  return request({
    url: '/api/blade-app/applePay/saveApplePayProductClassifyM',
    method: 'post',
    data:form

  })
}

export const removeApplePayProductClassify = (ids) => {
  return request({
    url: '/api/blade-app/applePay/removeApplePayProductClassify',
    method: 'post',
    params: {
      ids,
    }
  })
}

export const removeApplePayProductClassifyM = (ids) => {
  return request({
    url: '/api/blade-app/applePay/removeApplePayProductClassifyM',
    method: 'post',
    params: {
      ids,
    }
  })
}


//-----------------
export const applePayProductList = (current, size, params) => {
  return request({
    url: '/api/blade-app/applePay/applePayProductPage',
    method: 'get',
    params: {
      ...params,
      current,
      size
    }
  })
}

export const applePayProductListM = (current, size, params) => {
  return request({
    url: '/api/blade-app/applePay/applePayProductPageM',
    method: 'get',
    params: {
      ...params,
      current,
      size
    }
  })
}

export const addApplePayProduct = (form) => {
  return request({
    url: '/api/blade-app/applePay/saveApplePayProduct',
    method: 'post',
    data:form

  })
}

export const addApplePayProductM = (form) => {
  return request({
    url: '/api/blade-app/applePay/saveApplePayProductM',
    method: 'post',
    data:form

  })
}

export const removeApplePayProduct = (ids) => {
  return request({
    url: '/api/blade-app/applePay/removeApplePayProduct',
    method: 'post',
    params: {
      ids,
    }
  })
}

export const removeApplePayProductM = (ids) => {
  return request({
    url: '/api/blade-app/applePay/removeApplePayProductM',
    method: 'post',
    params: {
      ids,
    }
  })
}

export const applePayProductAllList = (form) => {
  return request({
    url: '/api/blade-app/applePay/applePayProductList',
    method: 'post',
    data:form
  })
}


export const applePayProductAllListM = (form) => {
  return request({
    url: '/api/blade-app/applePay/applePayProductListM',
    method: 'post',
    data:form
  })
}

//-----------------
export const applePayProductSpend = (current, size, params, startTime, endTime) => {
  return request({
    url: '/api/blade-app/applePay/applePayProductSpendPage',
    method: 'get',
    params: {
      ...params,
      current,
      size,
      startTime,
      endTime
    }
  })
}

export const applePayProductSpendM = (current, size, params, startTime, endTime) => {
  return request({
    url: '/api/blade-app/applePay/applePayProductSpendPageM',
    method: 'get',
    params: {
      ...params,
      current,
      size,
      startTime,
      endTime
    }
  })
}

export const applePayProductSpendTotal = (params, startTime, endTime) => {
  return request({
    url: '/api/blade-app/applePay/applePayProductSpendTotal',
    method: 'get',
    params: {
      ...params,
      startTime,
      endTime
    }
  })
}

export const applePayProductSpendTotalM = (params, startTime, endTime) => {
  return request({
    url: '/api/blade-app/applePay/applePayProductSpendTotalM',
    method: 'get',
    params: {
      ...params,
      startTime,
      endTime
    }
  })
}

//-------------------
export const addApplePayProductAccount = (form) => {
  return request({
    url: '/api/blade-app/applePay/saveApplePayProductAccount',
    method: 'post',
    data:form

  })
}

export const addApplePayProductAccountM = (form) => {
  return request({
    url: '/api/blade-app/applePay/saveApplePayProductAccountM',
    method: 'post',
    data:form

  })
}

export const removeApplePayProductAccount = (ids) => {
  return request({
    url: '/api/blade-app/applePay/removeApplePayProductAccount',
    method: 'post',
    params: {
      ids,
    }
  })
}

export const removeApplePayProductAccountM = (ids) => {
  return request({
    url: '/api/blade-app/applePay/removeApplePayProductAccountM',
    method: 'post',
    params: {
      ids,
    }
  })
}

export const applePayProductAccountList = (current, size, params, startTime, endTime) => {
  return request({
    url: '/api/blade-app/applePay/applePayProductAccountPage',
    method: 'get',
    params: {
      ...params,
      current,
      size,
      startTime,
      endTime
    }
  })
}

export const applePayProductAccountListHz = (current, size, params, startTime, endTime) => {
  return request({
    url: '/api/blade-app/applePay/applePayProductAccountPageHz',
    method: 'get',
    params: {
      ...params,
      current,
      size,
      startTime,
      endTime
    }
  })
}

export const applePayProductAccountListHzM = (current, size, params, startTime, endTime) => {
  return request({
    url: '/api/blade-app/applePay/applePayProductAccountPageHzM',
    method: 'get',
    params: {
      ...params,
      current,
      size,
      startTime,
      endTime
    }
  })
}

export const applePayProductAccountListM = (current, size, params, startTime, endTime) => {
  return request({
    url: '/api/blade-app/applePay/applePayProductAccountPageM',
    method: 'get',
    params: {
      ...params,
      current,
      size,
      startTime,
      endTime
    }
  })
}

export const applePayProductAccounts = (form) => {
  return request({
    url: '/api/blade-app/applePay/applePayProductAccountList',
    method: 'post',
    data:form
  })
}

export const applePayProductAccountsM = (form) => {
  return request({
    url: '/api/blade-app/applePay/applePayProductAccountListM',
    method: 'post',
    data:form
  })
}

export const applePayProductDelioveryList = (current, size, params, startTime, endTime) => {
  return request({
    url: '/api/blade-app/applePay/applePayProductDelioveryPage',
    method: 'get',
    params: {
      ...params,
      current,
      size,
      startTime,
      endTime
    }
  })
}

export const applePayProductDelioveryListM = (current, size, params, startTime, endTime) => {
  return request({
    url: '/api/blade-app/applePay/applePayProductDelioveryPageM',
    method: 'get',
    params: {
      ...params,
      current,
      size,
      startTime,
      endTime
    }
  })
}

export const savePayFaqAccountToBack = (form) => {
  return request({
    url: '/api/blade-app/applePay/savePayFaqAccountToBack',
    method: 'post',
    data:form

  })
}

export const addPayFaqAccountBack = (form) => {
  return request({
    url: '/api/blade-app/applePay/savePayFaqAccountBack',
    method: 'post',
    data:form

  })
}

export const removePayFaqAccountBack = (ids) => {
  return request({
    url: '/api/blade-app/applePay/removePayFaqAccountBack',
    method: 'post',
    params: {
      ids,
    }
  })
}

export const payFaqAccountBackPage = (current, size, params) => {
  return request({
    url: '/api/blade-app/applePay/payFaqAccountBackPage',
    method: 'get',
    params: {
      ...params,
      current,
      size
    }
  })
}

export const payFaqAccountList = (current, size, params) => {
  return request({
    url: '/api/blade-app/applePay/payFaqAccountPage',
    method: 'get',
    params: {
      ...params,
      current,
      size
    }
  })
}

export const payFaqAccountGz = (form) => {
  return request({
    url: '/api/blade-app/applePay/payFaqAccountGz',
    method: 'post',
    data:form
  })
}

export const saveFaqAccountGz = (form) => {
  return request({
    url: '/api/blade-app/applePay/saveFaqAccountGz',
    method: 'post',
    data:form
  })
}

export const addPayFaqAccount = (form) => {
  return request({
    url: '/api/blade-app/applePay/savePayFaqAccount',
    method: 'post',
    data:form

  })
}

export const removePayFaqAccount = (ids) => {
  return request({
    url: '/api/blade-app/applePay/removePayFaqAccount',
    method: 'post',
    params: {
      ids,
    }
  })
}

export const addPayConfig = (form) => {
  return request({
    url: '/api/blade-app/applePay/savePayConfig',
    method: 'post',
    data:form

  })
}

export const loadPayConfig = (form) => {
  return request({
    url: '/api/blade-app/applePay/loadPayConfig',
    method: 'post',
    data:form
  })
}

export const addPayConfigM = (form) => {
  return request({
    url: '/api/blade-app/applePay/savePayConfigM',
    method: 'post',
    data:form

  })
}

export const loadPayConfigM = (form) => {
  return request({
    url: '/api/blade-app/applePay/loadPayConfigM',
    method: 'post',
    data:form
  })
}

export const loadPayFaqVisit = (current, size, params) => {
  return request({
    url: '/api/blade-app/applePay/loadPayFaqVisit',
    method: 'get',
    params: {
      ...params,
      current,
      size
    }
  })
}

export const savePayFaqVisit = (form) => {
  return request({
    url: '/api/blade-app/applePay/savePayFaqVisit',
    method: 'post',
    data:form

  })
}
